package com.example.finalassessment.dto;

import lombok.Data;

@Data
public class CategoryProductCountDTO {
    private String categoryName; // 分类名称
    private Long productCount;   // 商品数量

    public CategoryProductCountDTO(String categoryName, Long productCount) {
        this.categoryName = categoryName;
        this.productCount = productCount;
    }

    // Getters and Setters
    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Long getProductCount() {
        return productCount;
    }

    public void setProductCount(Long productCount) {
        this.productCount = productCount;
    }
}
